package juc.c_001;/*
   Talk is cheap. Show me the code.
 */

/**
 * @Description
 * @Date 2021/6/6
 * @Author liudl
 */
public class T5 extends Thread {
    private int count = 100;

    @Override
    public /*synchronized*/ void run() {
        count--;
        System.out.println(Thread.currentThread().getName() + " count = " + count);
    }

    public static void main(String[] args) {
        T5 t5 = new T5();
        for (int i = 0; i < 100; i++) {
            new Thread(t5, "Thread" + i).start();
        }
    }
}
